﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="EditUserProfile.aspx.vb" Inherits="CricketForum.EditUserProfile" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Edit Profile
    </h2>
    <table width="100%">
        <tr>
            <td>
                First Name
            </td>
            <td>
                <asp:TextBox ID="txtFirstName" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtFirstName" ErrorMessage="Required First Name" ValidationGroup="NewCricInfo"></asp:RequiredFieldValidator><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="NewCricInfo"
                    runat="server" CssClass="ErrorMessage" ErrorMessage="Not a valid first name" 
                    ControlToValidate="txtFirstName" ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Last Name
            </td>
            <td>
                <asp:TextBox ID="txtLastName" runat="server" Width="200px"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtLastName" ErrorMessage="Required  Last Name" ValidationGroup="NewCricInfo"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationGroup="NewCricInfo"
                    runat="server" CssClass="ErrorMessage" ErrorMessage="Not a valid last name" ControlToValidate="txtLastName"
                    ValidationExpression="^[a-zA-Z''-'\s]{1,40}$"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td>
                Gender
            </td>
            <td>
                <asp:DropDownList ID="ddlGender" runat="server">
                </asp:DropDownList>
            </td>
              <td>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="ddlGender" ErrorMessage="Required Gender" ValidationGroup="NewCricInfo" ></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Date Of Birth
                </td>
            <td>
         
              
                <asp:TextBox ID="txtDOB" runat="server"  Width="100px"></asp:TextBox>
                <asp:CalendarExtender ID="txtCalender_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="txtDOB"  Format="dd/MM/yyyy">
                </asp:CalendarExtender>
         
              
            </td>
             <td>
             <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" CssClass="ErrorMessage"
                    ControlToValidate="txtDOB" ErrorMessage="Required Date Of Birth" ValidationGroup="NewCricInfo" ></asp:RequiredFieldValidator>
            </td>
        </tr>

         <tr>
            <td>
               Email Subscription
                </td>
            <td>
         
                <asp:CheckBox ID="cbEmailSubscription" runat="server" Text="True" />
             
         
              
            </td>
             <td>
                 
            </td>
        </tr>

        <tr>
            
            <td>
                Profile Picture
            </td>
            <td>
                <asp:FileUpload ID="fuProfilePicture" runat="server" /> <br />
                <asp:ImageMap ID="userProfileImage" runat="server" Width="200px" Height="200px">
                </asp:ImageMap>
            </td>

             <td>
            
            </td>
        </tr>
        <tr>
            <td colspan="3" style="text-align:center">
                <asp:Button ID="btnSave" runat="server" Text="Save Profile" ValidationGroup="NewCricInfo"  />
            </td>
        </tr>
    </table>
</asp:Content>
